# -*- coding: utf-8 -*-

dormancy = {
    '休眠户': {
        '立刻激活': ['xpath', "//*[contains(text(),'立刻激活')]//ancestor-or-self::*[3]"],
        '休眠户激活': ['xpath', "//*[contains(text(), '休眠户激活')]"],
        '中登休眠': ['xpath', "//*[contains(text(), '中登休眠')]"],
    }
}

address = {
    "修改身份信息": {
        "姓名": ["id", 'vux-x-input-sdv11'],
        "身份证号": ["id", 'vux-x-input-rwgv3'],
        "签发机关": ["xpath", "//*[@placeholder='签发机关']"],
        "证件地址": ["xpath", "//*[@placeholder='证件地址']"],
    },
    "联系地址": {
        '联系地址': ['xpath', '//*[@class="vux-popup-picker-placeholder vux-cell-placeholder"]'],
        '门牌号': ['xpath', '//*[@class="weui-textarea"]'],
        '是否常住地址': ['xpath', "//*[contains(text(),'请确认联系地址是否为经常居住地')]"],
        "确定": ["xpath", '//*[contains(text(),"确定")]/ancestor-or-self::*[3]']
    },
    "职业信息": {
        '职业': ['xpath', "//*[contains(text(),'请选择职业')]"],
        '职务': ['xpath', "//*[contains(text(),'请选择职务')]"],
        '工作单位': ['xpath', '//*[@placeholder="不少于3个汉字"]'],
        '年收入': ['xpath', "//*[contains(text(),'请输入年收入')]"],
        "确定年收入": ["xpath", '//*[contains(text(),"确定")]'],
        '完成': ['xpath', "//*[contains(text(),'完成')]"],
    },
    "其他信息": {
        "修改控制人/受益人电话": ['xpath', '//*[@class="text-image show"]'],
        "控制人电话": ['xpath', '//*[@placeholder="控制人电话"]'],
        "受益人电话": ['xpath', '//*[@placeholder="受益人电话"]'],
    },
}
